﻿using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    [Table("MsPointType")]
    public partial class MsPointType : BaseEntity
    {
        public enum PointTypeEnum
        {
            客厅 = 1,
            卧室 = 2,
            厨房 = 3,
            洗手间 = 4,
            阳台 = 5
        }

        /// <summary>
        /// 类型Id
        /// </summary>

        [Column(TypeName = "uuid")]
        [DatabaseGenerated(DatabaseGeneratedOption.None)]
        public Guid Id { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        [Column(TypeName = "varchar(64)")]
        [Required]
        public string Name { get; set; }

        /// <summary>
        /// 类型
        /// </summary>
        [Column(TypeName = "int2")]
        [Required]
        public int Type { get; set; }

        /// <summary>
        /// 类型名称
        /// </summary>
        [Column(TypeName = "varchar(64)")]
        public string VersionTypeName { get; set; }

        [Display(Name = "项目ID")]
        [Column(TypeName = "uuid")]
        public Guid ProjectGuid { get; set; }

        [Display(Name = "公司ID")]
        [Column(TypeName = "uuid")]
        public Guid CompanyGuid { get; set; }

        [Key]
        [Column(TypeName = "uuid")]
        public Guid MsPointTypeId { get; set; }

        ///// <summary>
        ///// 标准库Id
        ///// </summary>
        //[Column(TypeName = "uuid")]
        //[DatabaseGenerated(DatabaseGeneratedOption.None)]
        //public Guid ProjectStandardId { get; set; }
    }
}